import router from './router/index'
import getPageTitle from '@/utils/get-page-title'


router.beforeEach(async (to, from, next) => {
  document.title = getPageTitle(to.meta.title)
  // if (savedPosition) {
  //   return savedPosition
  // } else {
  //   return { x: 0, y: 0 }
  // }
  next()
})
